.foc-main {
  position: relative;
  width: inherit;
  height: inherit;
  /* width: 260px; */
/*  height: 280px;
  padding: 35px;
  background: #fff; */
}
.foc-card.foc-open{
  opacity: 1;
  -webkit-transform: rotateY(0);
  -moz-transform: rotateY(0);
  -ms-transform: rotateY(0);
  -o-transform: rotateY(0);
  transform: rotateY(0);
}



.foc-wrapper {
  
  display: block;
  position: absolute;
  width: 379px;
  height: 350px;
  -webkit-perspective: 640px;
  -moz-perspective: 640px;
  -ms-perspective: 640px;
  -o-perspective: 640px;
  perspective: 640px;
  
}

.foc-left-wrapper {
  top: 0;
  right: 100%;
}
.foc-right-wrapper {
  top: 0;
  left: 100%;
}
.foc-top-wrapper {
  bottom: 100%;
  left: 0px;
  width: 100%;
  height: 270px;
  
}

.foc-bottom-wrapper {
  top: 100%;
  left: 0px;
  width: 100%;
  height: 270px;
  
}

.foc-card {
	/* overflow: scroll;	 */
	overflow: hidden;
  /* background: #eee; */
  margin-left: 30px;
  height: 500px;
  position: relative;
  width: 550px;
  opacity: 0;
  font-size: 30px;
  -webkit-transform-origin: 100% 50%;
  -moz-transform-origin: 100% 50%;
  -ms-transform-origin: 100% 50%;
  -o-transform-origin: 100% 50%;
  transform-origin: 100% 50%;
  -webkit-transition: all .15s ease-in-out;
  -moz-transition: all .15s ease-in-out;
  -ms-transition: all .15s ease-in-out;
  -o-transition: all .15s ease-in-out;
  transition: all .15s ease-in-out;
}

.foc-foldout.foc-left {
  -webkit-transform: rotateX(0) translate3d(100%, 0, 0);
  -moz-transform: rotateX(0) translate3d(100%, 0, 0);
  -ms-transform: rotateX(0) translate3d(100%, 0, 0);
  -o-transform: rotateX(0) translate3d(100%, 0, 0);
  transform: rotateY(0) translate3d(100%, 0, 0);
}
.foc-foldout.foc-right {
  -webkit-transform: rotateX(0) translate3d(-100%, 0, 0);
  -moz-transform: rotateX(0) translate3d(-100%, 0, 0);
  -ms-transform: rotateX(0) translate3d(-100%, 0, 0);
  -o-transform: rotateX(0) translate3d(-100%, 0, 0);
  transform: rotateY(0) translate3d(-100%, 0, 0);
}
.foc-foldout.foc-top {
  -webkit-transform: rotateX(0) translate3d(0, 100%, 0);
  -moz-transform: rotateX(0) translate3d(0, 100%, 0);
  -ms-transform: rotateX(0) translate3d(0, 100%, 0);
  -o-transform: rotateX(0) translate3d(0, 100%, 0);
  transform: rotateY(0) translate3d(0, 100%, 0);
}
.foc-foldout.foc-bottom {
  -webkit-transform: rotateX(0) translate3d(0, -100%, 0);
  -moz-transform: rotateX(0) translate3d(0, -100%, 0);
  -ms-transform: rotateX(0) translate3d(0, -100%, 0);
  -o-transform: rotateX(0) translate3d(0, -100%, 0);
  transform: rotateY(0) translate3d(0, -100%, 0);
}


.foc-foldout.foc-open {
  -webkit-transform: rotateY(35deg) translate3d(0, 0, 0);
  -moz-transform: rotateY(35deg) translate3d(0, 0, 0);
  -ms-transform: rotateY(35deg) translate3d(0, 0, 0);
  -o-transform: rotateY(35deg) translate3d(0, 0, 0);
  transform: rotateY(35deg) translate3d(0, 0, 0);
}

.foc-foldout.foc-open:nth-child(even) {
  -webkit-transform: rotateY(-35deg) translate3d(0, 0, 0);
  -moz-transform: rotateY(-35deg) translate3d(0, 0, 0);
  -ms-transform: rotateY(-35deg) translate3d(0, 0, 0);
  -o-transform: rotateY(-35deg) translate3d(0, 0, 0);
  transform: rotateY(-35deg) translate3d(0, 0, 0);
  -webkit-transform-origin: 0% 50%;
  -moz-transform-origin: 0% 50%;
  -ms-transform-origin: 0% 50%;
  -o-transform-origin: 0% 50%;
  background: #ddd;
}

.foc-foldout.foc-right.foc-open {
  -webkit-transform: rotateY(-35deg) translate3d(0, 0, 0);
  -moz-transform: rotateY(-35deg) translate3d(0, 0, 0);
  -ms-transform: rotateY(-35deg) translate3d(0, 0, 0);
  -o-transform: rotateY(-35deg) translate3d(0, 0, 0);
  transform: rotateY(-35deg) translate3d(0, 0, 0);
}

.foc-foldout.foc-right.foc-open:nth-child(even) {
  -webkit-transform: rotateY(35deg) translate3d(0, 0, 0);
  -moz-transform: rotateY(35deg) translate3d(0, 0, 0);
  -ms-transform: rotateY(35deg) translate3d(0, 0, 0);
  -o-transform: rotateY(35deg) translate3d(0, 0, 0);
  transform: rotateY(35deg) translate3d(0, 0, 0);
  -webkit-transform-origin: 100% 50%;
  -moz-transform-origin: 100% 50%;
  -ms-transform-origin: 100% 50%;
  -o-transform-origin:100% 50%;
  background: #ddd;
}

.foc-foldout.foc-top.foc-open.even {
  -webkit-transform: rotateX(-35deg) translate3d(0, 0, 0);
  -moz-transform: rotateX(-35deg) translate3d(0, 0, 0);
  -ms-transform: rotateX(-35deg) translate3d(0, 0, 0);
  -o-transform: rotateX(-35deg) translate3d(0, 0, 0);
  transform: rotateX(-35deg) translate3d(0, 0, 0);
  -webkit-transform-origin: 0% 0%;
  -moz-transform-origin: 0% 0%;
  -ms-transform-origin: 0% 0%;
  -o-transform-origin: 0% 0%;
  
}

.foc-foldout.foc-top.foc-open.odd {
  -webkit-transform: rotateX(35deg) translate3d(0, 0, 0);
  -moz-transform: rotateX(35deg) translate3d(0, 0, 0);
  -ms-transform: rotateX(35deg) translate3d(0, 0, 0);
  -o-transform: rotateX(35deg) translate3d(0, 0, 0);
  transform: rotateX(35deg) translate3d(0, 0, 0);
  -webkit-transform-origin: 50% 100%;
  -moz-transform-origin: 50% 100%;
  -ms-transform-origin: 50% 100%;
  -o-transform-origin: 50% 100%;
  background: #ddd;
}

.foc-foldout.foc-bottom.foc-open{
  -webkit-transform: rotateX(-35deg) translate3d(0, 0, 0);
  -moz-transform: rotateX(-35deg) translate3d(0, 0, 0);
  -ms-transform: rotateX(-35deg) translate3d(0, 0, 0);
  -o-transform: rotateX(-35deg) translate3d(0, 0, 0);
  transform: rotateX(-35deg) translate3d(0, 0, 0);
  -webkit-transform-origin: 0% 0%;
  -moz-transform-origin: 0% 0%;
  -ms-transform-origin: 0% 0%;
  -o-transform-origin: 0% 0%;
  
}

.foc-foldout.foc-bottom.foc-open:nth-child(even)  {
  -webkit-transform: rotateX(35deg) translate3d(0, 0, 0);
  -moz-transform: rotateX(35deg) translate3d(0, 0, 0);
  -ms-transform: rotateX(35deg) translate3d(0, 0, 0);
  -o-transform: rotateX(35deg) translate3d(0, 0, 0);
  transform: rotateX(35deg) translate3d(0, 0, 0);
  -webkit-transform-origin: 50% 100%;
  -moz-transform-origin: 50% 100%;
  -ms-transform-origin: 50% 100%;
  -o-transform-origin: 50% 100%;
  background: #ddd;
}

.foc-foldout.foc-left.foc-open {
  left: 50px;
}

.foc-foldout.foc-left.foc-open:first-child {
  left: 0;
}

.foc-foldout.foc-right.foc-open {
  right: 50px;
}

.foc-foldout.foc-right.foc-open:first-child {
  right: 0;
}

.foc-foldout.foc-top.foc-open {
  top: 50px;
}

.foc-foldout.foc-top.foc-open:last-child {
  top: 0;
}

.foc-foldout.foc-bottom.foc-open {
  top: -50px;
}

.foc-foldout.foc-bottom.foc-open:first-child {
  top: 0;
}

.foc-slideout.foc-left {
  -webkit-transform: rotateY(0deg) translate3d(100%, 0, 0);
  -moz-transform: rotateY(0deg) translate3d(100%, 0, 0);
  -ms-transform: rotateY(0deg) translate3d(100%, 0, 0);
  -o-transform: rotateY(0deg) translate3d(100%, 0, 0);
  transform: rotateY(0deg) translate3d(100%, 0, 0);
}

.foc-slideout.foc-right {
  -webkit-transform: rotateY(0deg) translate3d(-100%, 0, 0);
  -moz-transform: rotateY(0deg) translate3d(-100%, 0, 0);
  -ms-transform: rotateY(0deg) translate3d(-100%, 0, 0);
  -o-transform: rotateY(0deg) translate3d(-100%, 0, 0);
  transform: rotateY(0deg) translate3d(-100%, 0, 0);
}


.foc-slideout.foc-top {
  -webkit-transform: rotateY(0deg) translate3d(0, 100%, 0);
  -moz-transform: rotateY(0deg) translate3d(0, 100%, 0);
  -ms-transform: rotateY(0deg) translate3d(0, 100%, 0);
  -o-transform: rotateY(0deg) translate3d(0, 100%, 0);
  transform: rotateY(0deg) translate3d(0, 100%, 0);
}


.foc-slideout.foc-bottom {
  -webkit-transform: rotateY(0deg) translate3d(0, -100%, 0);
  -moz-transform: rotateY(0deg) translate3d(0, -100%, 0);
  -ms-transform: rotateY(0deg) translate3d(0, -100%, 0);
  -o-transform: rotateY(0deg) translate3d(0, -100%, 0);
  transform: rotateY(0deg) translate3d(0, -100%, 0);
}

.foc-slideout.foc-open {
  -webkit-transform: rotateY(0deg) translate3d(0, 0, 0);
  -moz-transform: rotateY(0deg) translate3d(0, 0, 0);
  -ms-transform: rotateY(0deg) translate3d(0, 0, 0);
  -o-transform: rotateY(0deg) translate3d(0, 0, 0);
  transform: rotateY(0deg) translate3d(0, 0, 0);
}


.foc-left {
  float: right;
  -webkit-transform: rotateY(-90deg);
  -moz-transform: rotateY(-90deg);
  -ms-transform: rotateY(-90deg);
  -o-transform: rotateY(-90deg);
  transform: rotateY(-90deg);
}

.foc-right {
  float: left;
  -webkit-transform: rotateY(90deg);
  -moz-transform: rotateY(90deg);
  -ms-transform: rotateY(90deg);
  -o-transform: rotateY(90deg);
  transform: rotateY(90deg);
  -webkit-transform-origin: 0% 50%;
  -moz-transform-origin: 0% 50%;
  -ms-transform-origin: 0% 50%;
  -o-transform-origin: 0% 50%;
  transform-origin: 0% 50%;
}

.foc-top {
  float: left;
  height: 136px;
  width: 100%;
  -webkit-transform: rotateX(90deg);
  -moz-transform: rotateX(90deg);
  -ms-transform: rotateX(90deg);
  -o-transform: rotateX(90deg);
  transform: rotateX(90deg);
  -webkit-transform-origin: 100% 100%;
  -moz-transform-origin: 100% 100%;
  -ms-transform-origin: 100% 100%;
  -o-transform-origin: 100% 100%;
  transform-origin: 100% 100%;
}

.foc-bottom {
  float: left;
  height: 136px;
  width: 100%;
  -webkit-transform: rotateX(-90deg);
  -moz-transform: rotateX(-90deg);
  -ms-transform: rotateX(-90deg);
  -o-transform: rotateX(-90deg);
  transform: rotateX(-90deg);
  -webkit-transform-origin: 100% 0%;
  -moz-transform-origin: 100% 0%;
  -ms-transform-origin: 100% 0%;
  -o-transform-origin: 100% 0%;
  transform-origin: 100% 0%;
}

